export const HxConfig = {
    env: 'prod',// dev-开发环境,test-测试环境，prod-生产环境
    dev: 'http://192.168.1.57:8080/wxappsvr/controller/handle',
    test: 'https://smartparktst.hxsmart.com/wxappsvr/controller/handle',
    prod: 'https://wxcharge.gdgzez.com.cn/wxappsvr/controller/handle',
    prod2: 'https://wxcharge2.gdgzez.com.cn/wxappsvr/controller/handle',
};
export const getBaseUrl = () => {
    return HxConfig[HxConfig.env];
};

export const setBaseUrl = () => {
    if (HxConfig.env.indexOf('prod') > -1) {
        HxConfig.env = HxConfig.env === 'prod' ? 'prod2' : 'prod';
    }
};
